import java.util.Scanner;

public class Demo4 {
    public static void main(String[] args) {
        System.out.println("请输入一个三位数:");
        int n = new Scanner(System.in).nextInt();
        while(n!=0)
        {
            System.out.print(n%10);
            n/=10;
        }
    }
}
